<?php

require_once "core/application/models/mgmshop/mgmshop9.php";

class Mgmshop10 extends Mgmshop9 {

    private $_query;
    private $_fetch = array();

    protected function getMaxMailId() {
        /**
         * @return ��������� ID � ������
         */
        DB::getInstance()->openConnectionToGS();
        $this->_query = "SELECT `mailUniqueId` FROM `mail` ORDER BY `mailUniqueId` DESC LIMIT 1";
        $this->_fetch = mysql_fetch_assoc(DB::getInstance()->sql($this->_query));
        return $this->_fetch['mailUniqueId'];
        DB::getInstance()->closeConnection();
        unset($this->_query, $this->_fetch);
    }

}

?>